package com.clubs.coding.model.dao;

import com.clubs.coding.model.pojo.AthAdminUser;
import com.clubs.coding.model.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
    User findByOpenid(String openid);
    User selectUserInfo(String openid);
    User selectByToken(String token);
    User selectByPhone(String phoen);
    List<User> selectAll(@Param("member") Integer member, @Param("id") Integer id, @Param("nickName") String nickName,@Param("mobile") Integer mobile);
}